package com.duoduo.springcloud.config;

import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * FeignLogConfig 开启openFeign日志打印功能
 *      Feign提供了日志打印功能，我们可以通过配置来调整日志级别，从而了解Feign中Http请求的细节
 *      说白了就是对Feign接口的调用情况进行监控和输出
 * @author qian
 * @version 1.0
 * @date 2020/11/21 18:57
 */
@Configuration
public class FeignLogConfig {

    @Bean
    public Logger.Level feignLoggerLevel(){
        return Logger.Level.FULL;
    }
}
